// eslint-disable-next-line no-undef
let base_url = 'http://yixinzao.121.soft1024.com/api'
let visit_url = 'http://localhost:8080/h5/#/'
let data = {
	timestamp: '1611217054',
	mock: '0',
	appid: 'yrbaseline',
}
import md5Libs from "uview-ui/libs/function/md5";
//随机字符串
const randomStr = (len) => {
	len = len || 32;
	var chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz123456789';
	var maxPos = chars.length;
	var pwd = '';
	for (let i = 0; i < len; i++) {
		pwd += chars.charAt(Math.floor(Math.random() * maxPos));
	}
	return pwd;
}
Cypress.Commands.add('jump', (link) => {
	cy.visit(`${visit_url}${link}`)
	cy.wait(2000)
})
Cypress.Commands.add('tab', (val) => {
  cy.get(val).click()
  cy.wait(500)
})
Cypress.Commands.add('input', (val, input) => {
  cy.get(val).type(input)
  cy.wait(1000)
})
